package com.zhuoan.im.server.command;

import org.jim.common.Status;

/**
 * The enum Im status.
 *
 * @author weixiang.wu
 * @date 2018 -10-17 16:59
 * @see org.jim.common.ImStatus 以下命令基于jim做补充
 */
public enum ImStatus implements Status {
    /**
     * 响应状态码 + 响应状态信息提示
     */
    C10022(10022, "Friend application successful", "好友申请成功"),
    C10023(10023, "Returned friend application list successfully", "返回好友申请列表成功"),
    C10024(10024, "The friend application was successfully processed", "好友申请处理成功"),
    C10025(10025, "Create group successfully", "创建群组成功"),
    C10026(10026, "The new/deleted people in the group were successful", "新增/删除组内人员成功"),



    ;

    private int status;

    private String description;

    private String text;

    private ImStatus(int status, String description, String text) {
        this.status = status;
        this.description = description;
        this.text = text;
    }

    /**
     * Gets status.
     *
     * @return the status
     */
    public int getStatus() {
        return status;
    }

    /**
     * Gets description.
     *
     * @return the description
     */
    public String getDescription() {
        return description;
    }

    /**
     * Gets text.
     *
     * @return the text
     */
    public String getText() {
        return text;
    }

    @Override
    public int getCode() {
        return this.status;
    }

    @Override
    public String getMsg() {
        return this.getDescription() + " " + this.getText();
    }
    }
